package org.lanqiao.service;

import java.util.List;

import org.lanqiao.dao.CollectDaoImpI;
import org.lanqiao.pojo.CollectPOJO;

public class CollectServieImpI {
	
	CollectDaoImpI collect = new CollectDaoImpI();
	
	/**
	 * 1.加入收藏
	 */
	public int add(CollectPOJO collect1ist) {
		return collect.addCollect(collect1ist);
		
	}
	
	/**
	 * 查询收藏列表
	 */
	
	public List select(String userId) {
		return collect.SelectCollect(userId);
	}
	
	/**
	 * 3.删除收藏商品
	 */
	public int remove(String id) {
		return collect.deleteCollect(id);
		  		
	}
	
	
}
